#include<iostream>
using namespace std;
class A{
private:
	int a;
	friend class B; //友元类
public:
	A(){}
	A(int a){
		this->a=a;
	}
};
class B{
private:
	int b;
public:
	B(){
	}
	B(int b){
		this->b=b;
	}
	void print(){
		A a(15);
		cout<<a.a<<endl;
	}
};


int main15(){
	B b(16);
	b.print();
	cout<<"end"<<endl;
	return 0;
}
